package com.future.orm;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 用户信息
 *
 * @author shiyong
 * 2020/5/16 14:26
 */
@Data
@Table(name = "user")
public class User {
    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 用户名称
     */
    @Column(name = "user_name")
    private String userName;

    @Override
    public String toString() {
        return "User{" +
                "userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                '}';
    }
}
